package com.pig.controller;

import com.pig.pojo.order.Order;
import com.pig.service.OrderService;
import com.pig.util.SysResult;
import com.pig.util.SysResultLayui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class OrderController {
    @Autowired
    private OrderService orderService;


    @RequestMapping("/showOrder")
    public SysResult showOrder(){
        System.out.println("断点showOrder");
        List<Order> orderList = orderService.showOrder();
        return SysResult.success(orderList);

    }




}
